<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Reflection::Directory::Stash</title>
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>

  </head>
  <body>
    <div id="header">
      <div id="menu">
  
    <a href="../../_index.html">Index (S)</a> &raquo; 
    <a title="Reflection" href="../../Reflection.html">Reflection</a> &raquo; <a title="Directory" href="../Directory.html">Directory</a>
     &raquo; 
    <span class="title">Stash</span>
  
</div>

      <div id="search">
  <a id="class_list_link" href="#">Namespace List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Reflection::Directory::Stash 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></li>
          
            <li class="next">Reflection::Directory::Stash</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">lib/reflection/directory/stash.rb</dd>
  
</dl>
<div class="clear"></div>



  
  
  
  
  <h2>Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature"><a title="#repository (instance method)" href="#repository-instance_method">- (Object) <strong>repository</strong> </a>
  
  </span>
  
    
    
  
  
  
  

  
    <span class="summary_desc">
Returns the value of attribute <tt>repository</tt>.

</span>
  
</li>

    
  </ul>


  <h2>Method Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature"><a title="#clone_repository (instance method)" href="#clone_repository-instance_method">- (Object) <strong>clone_repository</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#initialize (instance method)" href="#initialize-instance_method">- (Stash) <strong>initialize</strong>(repository, identifier_prefix) </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc">
A new instance of <tt>Stash</tt>.

</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#path (instance method)" href="#path-instance_method">- (Object) <strong>path</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature"><a title="#validate_repository (instance method)" href="#validate_repository-instance_method">- (Object) <strong>validate_repository</strong> </a>
  
  </span>
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>


  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a title="Reflection::Directory::Base" href="Base.html">Reflection::Directory::Base</a></h3>
  <p class="inherited"><a title="#clean!" href="Base.html#clean%21-instance_method">#clean!</a>, <a title="#copy_git_index_to" href="Base.html#copy_git_index_to-instance_method">#copy_git_index_to</a>, <a title="#exists?" href="Base.html#exists%3F-instance_method">#exists?</a>, <a title="#get_git_index_from" href="Base.html#get_git_index_from-instance_method">#get_git_index_from</a>, <a title="#git_index" href="Base.html#git_index-instance_method">#git_index</a>, <a title="#move_content_to" href="Base.html#move_content_to-instance_method">#move_content_to</a>, <a title="#name" href="Base.html#name-instance_method">#name</a>, <a title="#parent" href="Base.html#parent-instance_method">#parent</a>, <a title="#to_s" href="Base.html#to_s-instance_method">#to_s</a></p>
<div id="constructor_details">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a title="Stash" href="">Stash</a></tt>) <strong>initialize</strong>(repository, identifier_prefix) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
A new instance of <tt>Stash</tt>
</p>


  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a title="Stash" href="">Stash</a></tt>)</span>
      
      
      
      
        &mdash;
        
a new instance of <tt>Stash</tt>


      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


7
8
9
10</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 7</span>

<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='repository identifier id'>repository</span><span class='comma token'>,</span> <span class='identifier_prefix identifier id'>identifier_prefix</span><span class='rparen token'>)</span>
  <span class='@repository ivar id'>@repository</span> <span class='assign token'>=</span> <span class='repository identifier id'>repository</span>
  <span class='@identifier_prefix ivar id'>@identifier_prefix</span> <span class='assign token'>=</span> <span class='identifier_prefix identifier id'>identifier_prefix</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="attr_details">
    <h2>Attribute Details</h2>
    
      
      <span id="repository=-instance_method"></span>
      <span id="repository-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="repository-instance_method">
  
    - (<tt>Object</tt>) <strong>repository</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>
Returns the value of attribute <tt>repository</tt>
</p>


  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


5
6
7</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 5</span>

<span class='def def kw'>def</span> <span class='repository identifier id'>repository</span>
  <span class='@repository ivar id'>@repository</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="method_details">
    <h2>Method Details</h2>
    
      <div class="method_details first">
  <p class="signature first" id="clone_repository-instance_method">
  
    - (<tt>Object</tt>) <strong>clone_repository</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


24
25
26
27</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 24</span>

<span class='def def kw'>def</span> <span class='clone_repository identifier id'>clone_repository</span>
  <span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='log identifier id'>log</span><span class='dot token'>.</span><span class='debug identifier id'>debug</span> <span class='dstring node'>&quot;Cloning repository '#{self.repository.url}' to '#{self.path}'&quot;</span>      
  <span class='@repository ivar id'>@repository</span><span class='dot token'>.</span><span class='clone identifier id'>clone</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="path-instance_method">
  
    - (<tt>Object</tt>) <strong>path</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


12
13
14</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 12</span>

<span class='def def kw'>def</span> <span class='path identifier id'>path</span>
  <span class='@path ivar id'>@path</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='home identifier id'>home</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='comma token'>,</span> <span class='@identifier_prefix ivar id'>@identifier_prefix</span><span class='comma token'>,</span> <span class='repository identifier id'>repository</span><span class='dot token'>.</span><span class='identifier identifier id'>identifier</span><span class='rparen token'>)</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="validate_repository-instance_method">
  
    - (<tt>Object</tt>) <strong>validate_repository</strong> 
  

  
</p><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


16
17
18
19
20
21
22</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File 'lib/reflection/directory/stash.rb', line 16</span>

<span class='def def kw'>def</span> <span class='validate_repository identifier id'>validate_repository</span>
  <span class='if if kw'>if</span> <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Repository constant id'>Repository</span><span class='dot token'>.</span><span class='exists? fid id'>exists?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='notop op'>!</span><span class='@repository ivar id'>@repository</span><span class='dot token'>.</span><span class='same_in_path? fid id'>same_in_path?</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='dot token'>.</span><span class='path identifier id'>path</span><span class='rparen token'>)</span>
    <span class='Reflection constant id'>Reflection</span><span class='colon2 op'>::</span><span class='Support constant id'>Support</span><span class='dot token'>.</span><span class='exit_with_error identifier id'>exit_with_error</span> <span class='dstring node'>&quot;The stash directory '#{self.path}' is a repository, but not the one you specified (--repository).&quot;</span>
  <span class='else else kw'>else</span>
    <span class='Reflection constant id'>Reflection</span><span class='dot token'>.</span><span class='log identifier id'>log</span><span class='dot token'>.</span><span class='debug identifier id'>debug</span> <span class='dstring node'>&quot;Directory '#{self.path}' valid.&quot;</span>
  <span class='end end kw'>end</span>
<span class='end end kw'>end</span>
</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Wed Nov 18 18:17:11 2009 by 
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
  0.4.0 (ruby-1.8.7).
</div>

  </body>
</html>